//
//  PickNumSportItemBFONeCell.m
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-10-30.
//
//

#import "JddPickNumBasketBallSFCOpenSecondCell.h"

@implementation JddPickNumBasketBallSFCOpenSecondCell
GET_INSTANCE_VIEW_IMPLEMENT(JddPickNumBasketBallSFCOpenSecondCell)

-(IBAction)btnAction:(id)sender
{
    UIButton *btn = (UIButton *)sender;
    UILabel *lbl = self.btn1DownText;
    if(btn == self.btn1){
        lbl = self.btn1DownText;
    }else if(btn == self.btn2){
        lbl = self.btn2DownText;
    }else if(btn == self.btn3){
        lbl = self.btn3DownText;
    }else if(btn == self.btn4){
        lbl = self.btn4DownText;
    }else if(btn == self.btn5){
        lbl = self.btn5DownText;
    }else{
        lbl = self.btn6DownText;
    }
    if (btn.selected) {
        [lbl setTextColor:[UIColor brownColor]];
    }else{
        [lbl setTextColor:[UIColor whiteColor]];
    }
    NSArray *arr = [NSArray arrayWithObjects:btn, self.indexPath, nil];
    NSString *name = (self.parentBtnTag == 0) ? @"客胜" : @"主胜";
    name = [name stringByAppendingString:btn.titleLabel.text];
    self.aSportNumber.teamArray= [[NSMutableArray alloc] initWithObjects:name, nil];
    [self.delegate performSelector:@selector(sportTeamButtonClicked:number:) withObject:arr withObject:self.aSportNumber];
}
- (void)awakeFromNib
{
    self.btn1.layer.borderColor = BORDER_COLOR;
    self.btn1.layer.borderWidth = 0.5;
    
    self.btn2.layer.borderColor = BORDER_COLOR;
    self.btn2.layer.borderWidth = 0.5;
    
    self.btn3.layer.borderColor = BORDER_COLOR;
    self.btn3.layer.borderWidth = 0.5;
    
    self.btn4.layer.borderColor = BORDER_COLOR;
    self.btn4.layer.borderWidth = 0.5;
    
    self.btn5.layer.borderColor = BORDER_COLOR;
    self.btn5.layer.borderWidth = 0.5;
    
    self.btn6.layer.borderColor = BORDER_COLOR;
    self.btn6.layer.borderWidth = 0.5;
    
}
@end
